/* ===================================
   LOGIN PAGE - BUD BUDOTS
   Atmospheric Morning Silog Theme
   Blue & Gold with Smoke Effects
   =================================== */

/* ===================================
   BASE RESET & VARIABLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-blue: #3338A0;
    --light-blue: #4A50B8;
    --gold: #FCC61D;
    --warm-cream: #FFFBEB;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Blue Gradient Base */
.gradient-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3338A0 50%, #3b82f6 100%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(10deg);
    }
}

/* Blurred Background Image */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(252, 198, 29, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(252, 198, 29, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    filter: blur(80px);
}

/* Smoke/Steam Container */
.smoke-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.smoke {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0;
    animation: smokeRise 20s infinite ease-in-out;
}

.smoke-1 {
    bottom: -200px;
    left: 10%;
    animation-delay: 0s;
}

.smoke-2 {
    bottom: -200px;
    left: 30%;
    animation-delay: 4s;
}

.smoke-3 {
    bottom: -200px;
    left: 50%;
    animation-delay: 8s;
}

.smoke-4 {
    bottom: -200px;
    left: 70%;
    animation-delay: 12s;
}

.smoke-5 {
    bottom: -200px;
    right: 10%;
    animation-delay: 16s;
}

.smoke-6 {
    bottom: -200px;
    right: 30%;
    animation-delay: 2s;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Light Beams */
.light-beams {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    pointer-events: none;
}

.beam {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(252, 198, 29, 0.3) 0%, 
        rgba(252, 198, 29, 0.1) 50%, 
        transparent 100%);
    filter: blur(3px);
    animation: beamGlow 8s infinite ease-in-out;
}

.beam-1 {
    left: 30%;
    animation-delay: 0s;
}

.beam-2 {
    left: 50%;
    animation-delay: 2s;
}

.beam-3 {
    left: 70%;
    animation-delay: 4s;
}

@keyframes beamGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: scaleY(1.2);
    }
}

/* ===================================
   LOGIN CONTAINER
   =================================== */
.login-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Card - Glassmorphism */
.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: cardFadeIn 0.8s ease-out;
    overflow: hidden;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Steam Effects */
.card-steam {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    animation: cardSteam 15s infinite ease-in-out;
}

.card-steam-1 {
    bottom: -50px;
    left: 20%;
    animation-delay: 0s;
}

.card-steam-2 {
    bottom: -50px;
    right: 20%;
    animation-delay: 5s;
}

.card-steam-3 {
    bottom: -50px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes cardSteam {
    0%, 100% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-150px) scale(1.2);
        opacity: 0.4;
    }
}

/* ===================================
   BRAND SECTION
   =================================== */
.brand-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--gold) 0%, #f4b000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--deep-blue);
    box-shadow: 
        0 10px 30px rgba(252, 198, 29, 0.4),
        inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(252, 198, 29, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(252, 198, 29, 0.6);
    }
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* ===================================
   WELCOME SECTION
   =================================== */
.welcome-section {
    text-align: center;
    margin-bottom: 35px;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ===================================
   LOGIN FORM
   =================================== */
.login-form {
    margin-bottom: 25px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(252, 198, 29, 0.2);
}

.input-group input:focus ~ .input-underline {
    transform: scaleX(1);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

/* Animated Underline */
.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), #f4b000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 15px 15px;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--gold);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Custom Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked ~ .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.remember-me input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--deep-blue);
    font-size: 0.75rem;
}

.label-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Forgot Password Link */
.forgot-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--gold);
}

/* ===================================
   LOGIN BUTTON
   =================================== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #f4b000 100%);
    color: var(--deep-blue);
    border: none;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(252, 198, 29, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(252, 198, 29, 0.6);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Button Glow Effect */
.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.btn-login:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2.5);
    animation: glowPulse 5s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Button Steam Effect */
.btn-steam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    animation: btnSteam 3s infinite ease-in-out;
}

@keyframes btnSteam {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -100px);
        opacity: 0.6;
    }
}

/* ===================================
   GUEST BUTTON
   =================================== */
.guest-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.guest-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.guest-button:active {
    transform: translateY(0);
}

.guest-button i {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===================================
   DIVIDER
   =================================== */
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    border-radius: 20px;
}

/* ===================================
   GOOGLE BUTTON
   =================================== */
.btn-google {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.google-icon {
    width: 24px;
    height: 24px;
}

/* ===================================
   SIGN UP SECTION
   =================================== */
.signup-section {
    text-align: center;
    margin-top: 25px;
}

.signup-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.signup-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(252, 198, 29, 0.5);
}

/* ===================================
   FLOATING FOOD ICONS
   =================================== */
.floating-food {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.food-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: floatFood 25s infinite ease-in-out;
}

.food-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.food-2 {
    top: 25%;
    right: 12%;
    animation-delay: 5s;
}

.food-3 {
    bottom: 20%;
    left: 8%;
    animation-delay: 10s;
}

.food-4 {
    bottom: 30%;
    right: 15%;
    animation-delay: 15s;
}

@keyframes floatFood {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(10deg);
    }
    50% {
        transform: translate(-20px, -50px) rotate(-10deg);
    }
    75% {
        transform: translate(-30px, -20px) rotate(5deg);
    }
}

/* ===================================
   NOTIFICATION
   =================================== */
.notification {
    position: fixed;
    top: 30px;
    right: -400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
}

.notification.show {
    right: 30px;
}

.notification-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-icon.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
        max-width: 400px;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .food-icon {
        font-size: 2rem;
    }

    .notification {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-login {
        font-size: 1rem;
        padding: 14px;
    }

    .notification {
        right: 10px;
        max-width: calc(100vw - 40px);
    }

    .notification.show {
        right: 10px;
    }

    .food-icon {
        font-size: 1.5rem;
        opacity: 0.15;
    }
}

/* ===================================
   LOADING STATE
   =================================== */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid var(--deep-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
}

/* ===================================
   BAN MODAL
   =================================== */
.ban-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.ban-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

.ban-modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.ban-modal-header i {
    font-size: 64px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.ban-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ban-modal-body {
    padding: 30px;
    text-align: center;
}

.ban-modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.ban-details {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.ban-details p {
    margin: 10px 0;
    font-weight: 600;
    color: #856404;
}

.ban-details strong {
    color: #dc3545;
}

.ban-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

.btn-ok {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-ok:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
